import Vue from 'vue'
import Vuex from 'vuex'
import state from '@/store/state'
import mutations from '@/store/mutation'

Vue.use(Vuex)

export default new Vuex.Store({
  state,
  // actions: { 可以省去 action 直接 commit 到 mutation
  //   changeCity (ctx, city) {
  //     ctx.commit('changeCity', city)
  //   }
  // },
  mutations
})
